package com.eorchis.module.classapplydep.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.classapplydep.domain.ClassApplyDep;
import com.eorchis.module.department.domain.Department;
import com.eorchis.module.trainingclass.domain.TrainingClass;

import org.hibernate.validator.constraints.NotBlank;


/**
 * Title: ClassApplyDepValidCommond<br>
 * Description: 培训班-单位关系ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author HuangTF
 * @createDate 2013-12-18
 * @version $Revision$
 */
public class ClassApplyDepValidCommond implements ICommond {
	
	private ClassApplyDep classApplyDep;
	
	public ClassApplyDepValidCommond(){
		classApplyDep = new ClassApplyDep();
	}
	
	public ClassApplyDepValidCommond(ClassApplyDep classApplyDep){
		this.classApplyDep = classApplyDep;
	}

	public Serializable getEntityID() {
		return classApplyDep.getClassApplydepId();
	}

	@Override
	public IBaseEntity toEntity() {
		return classApplyDep;
	}

	/**
	 * 获取培训班单位关系ID
	 */	
	@NotBlank
	public String getClassApplydepId() {
		return classApplyDep.getClassApplydepId();
	}
	/**
	 * 设置培训班单位关系ID
	 */		
	public void setClassApplydepId(String classApplydepId) {
		classApplyDep.setClassApplydepId(classApplydepId);
	}
	/**
	 * 获取培训班
	 */	
	@NotBlank
	public TrainingClass getTrainingClass() {
		return classApplyDep.getTrainingClass();
	}
	/**
	 * 设置培训班
	 */		
	public void setTrainingClass(TrainingClass trainingClass) {
		classApplyDep.setTrainingClass(trainingClass);
	}
	/**
	 * 获取部门
	 */	
	@NotBlank
	public Department getDepartment() {
		return classApplyDep.getDepartment();
	}
	/**
	 * 设置部门
	 */		
	public void setDepartment(Department department) {
		classApplyDep.setDepartment(department);
	}
	/**
	 * 获取限制人数
	 */	
	public Long getRestrictPersonNum() {
		return classApplyDep.getRestrictPersonNum();
	}
	/**
	 * 设置限制人数
	 */		
	public void setRestrictPersonNum(Long restrictPersonNum) {
		classApplyDep.setRestrictPersonNum(restrictPersonNum);
	}
	
	
	
}
